﻿@model www.Models.newfolderModel

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "newfolderDialog" }))
{    
    @Html.ValidationSummary(true)
  

    <fieldset>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <p><center>
            <input type="submit" value="Ok" />
            @if (Request.IsAjaxRequest())
            {
                <input type="button" value="Cancel" onclick="$(this).closest('.dialog').dialog('close');" />
            }
        </center></p>
               

    </fieldset>

  
}